//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.wsd.smartcarwasher.dao;

import com.wsd.smartcarwasher.domain.Admin;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataAccessException;

public interface AdminDao {
    int addAdmin(Admin admin) throws DataAccessException;

    int deleteAdmin(int id) throws DataAccessException;

    int updateAdmin(Admin admin) throws DataAccessException;

    List<Admin> queryAdminWithAuthlevel(@Param("authlevel") String authlevel) throws DataAccessException;

    Admin hasAdminWithCellphone(@Param("cellphone") String cellphone) throws DataAccessException;

    Admin getAdminByNickname(String nickname) throws DataAccessException;

    Admin getAdminById(int id) throws DataAccessException;

    Admin getAdminByCellphone(String cellphone) throws DataAccessException;
}
